from . import aiagent_settings
from .aiagent_settings import *

import os
from dotenv import load_dotenv

load_dotenv()

DING_Client_ID = os.getenv("DING_Client_ID")
DING_Client_Secret = os.getenv("DING_Client_Secret")
DING_ACCESS_TOKEN_REFRESH = 600

REDIS_HOST = "192.168.0.106"
REDIS_PORT = "6379"

DB_URI = f"mysql+aiomysql://{os.getenv('MYSQL_USER')}:{os.getenv('MYSQL_PASSWORD')}@{os.getenv('MYSQL_HOST')}:{os.getenv('MYSQL_PORT')}/{os.getenv('MYSQL_DB_NAME')}?charset=utf8mb4"

MCP_DETECT_INTERVAL = int(os.getenv("MCP_DETECT_INTERVAL"))

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

FILE_UPLOAD_DIR = os.path.join(BASE_DIR, "upload")

CHROMA_PRESIST_DIRECTORY = os.path.join(BASE_DIR, "chromadb")
